/*********************************************************************
* File: qbrick.h
* Create Qbrick
* Author: 10520418 Bui Huu Hiep
**********************************************************************/
#pragma once
#ifndef _QBRICK_H
#define _QBRICK_H

#include "GameObject.h"

#define VEL_Y 300

/********************************************
* Qbrick
* Inheritance form class Obj
* Create Qbrick
********************************************/
class Qbrick : public GameObject
{
private:
	float		_old_y;
	int			_kind;		// Kind object into QBrick: Coin, Mushroom, Flower, Star.

public:
	Qbrick(float posX, float posY, float width, float height, Resources* res, int kind, int number, int depth);
	~Qbrick(void);

	void Update(float time, QNode* &Tree);
	void Render(LPD3DXSPRITE spriteHandler, Viewport* viewport);
	void ChangeState(char state);

	int Kind(){ return _kind; }
};
#endif
